home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #14 / Monster Media No. 14 (April 1996) (Monster Media, Inc.).ISO / win_utl2 / uzpro121.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1996-02-18  |  2KB  |  95 lines

  1. @echo off
  2.  
  3. rem Run this installation script only after you have read the installation
  4. rem instructions!
  5.  
  6. echo.
  7. echo =========================================================================
  8. echo.
  9. echo UZPronto 1.20 installation...
  10. echo -----------------------------
  11. echo.
  12.  
  13. rem make sure we are in the correct place
  14. if exist uzpronto.exe goto install
  15.  
  16. echo You need to invoke INSTALL.BAT from the directory where you installed
  17. echo the software.
  18. goto abort
  19.  
  20. :install
  21. echo This script moves files within the current directory, changes permissions,
  22. echo and copies files into your system area.  You will be notified and prompted
  23. echo before any changes are done to your system area!
  24. echo.
  25.  
  26. echo.
  27. choice /c:yn /t:n,30 Continue with the installation?
  28. if errorlevel 2 goto abort
  29.  
  30.  
  31. rem move files to appropriate subdirectories, in case pkunzip -d was not done
  32. echo.
  33. echo.
  34. echo Moving files to appropriate subdirectories...
  35. echo.
  36.  
  37. ctty nul
  38. mkdir data > nul
  39. ctty con
  40. move *.uzc data > nul
  41. attrib +r data\*.uzc
  42.  
  43. ctty nul
  44. mkdir system > nul
  45. ctty con
  46. move ctl3dv2.dll system > nul
  47.  
  48.  
  49. rem need to copy ctl3dv2.dll to c:\windows\system
  50. echo.
  51. echo UZPronto needs the dynamic link library CTL3DV2.DLL in C:\WINDOWS\SYSTEM .
  52. echo.
  53.  
  54. if not exist c:\windows\system\ctl3dv2.dll goto skipcheck
  55. echo CTL3DV2.DLL already exists in your system area. Here is the version of
  56. echo the file:
  57. dir c:\windows\system\ctl3dv2.dll | find "CTL"
  58. echo Here is the version we need
  59. dir system\ctl3dv2.dll | find "CTL"
  60. echo If the version we need is newer than the one in your system area,
  61. echo we recommend that you install the newer version.
  62. goto copydll
  63.  
  64. :skipcheck
  65. echo CTL3DV2.DLL is not in your system area. We recommend to install it.
  66. goto copydll
  67.  
  68. :copydll
  69. echo.
  70. choice /c:yn /t:n,30 Copy CTL3DV2.DLL to C:\WINDOWS\SYSTEM?
  71. if errorlevel 2 goto skipcopy
  72. move c:\windows\system\ctl3dv2.dll c:\windows\system\ctl3dv2.old > nul
  73. copy system\ctl3dv2.dll c:\windows\system > nul
  74. goto success
  75.  
  76. :skipcopy
  77. echo If the correct version is not there, you can copy the file by hand.
  78. goto success
  79.  
  80. :success
  81. echo.
  82. echo Installation finished!
  83. echo.
  84. goto end
  85.  
  86. :abort
  87. echo.
  88. echo Installation aborted. UZPronto may not run successfully!
  89. echo.
  90. goto end
  91.  
  92. :end
  93. echo =========================================================================
  94. echo.
  95.